{template header}

    {template title}

    <div class="box">

    <!--{if $a == 'index'}-->
        <table cellpadding="1" cellspacing="1" width="100%" border="0">
            <tr>
                <th width="20%">名称</th>
                <th width="10%">版本</th>
                <th width="10%">作者</th>
                <th width="50%">描述</th>
                <th width="12%">操作</th>
            </tr>

        <!--{if $this->result}-->
            <!--{loop $this->result $v}-->
            <tr>
                <td>{$v['pid']}</td>
                <td>{$v['version']}</td>
                <td><a href="{$v['home']}">{$v['author']}</a></td>
                <td>{$v['description']}</td>
                <td>
                    <a title="{$this->status[$v['status']]}{$this->name}" class="btn {$v['status'] ? 'btn-danger' : 'btn-success'} btn-mini get" href="{$this->url($c, 'active', array('id' => $v['id'], 'v' => $v['status'] ))}">{$this->status[$v['status']]}</a>
                    <!--{if $v['config']}-->
                    <a class="btn btn-mini btn-success" href="{$this->url($c, 'config', array('id' => $v['id']) )}">配置</a>
                    <!--{/if}-->
                </td>
            </tr>
            <!--{/loop}-->
        <!--{else}-->
            <tr>
                <td colspan="5">没有安装插件!</td>
            </tr>
        <!--{/if}-->

            <tr>
                <th colspan="5" class="td2">安装插件包</th>
            </tr>

        <!--{if $package}-->
            <!--{loop $package $v}-->
            <tr>
                <td colspan="4" class="td2">{echo basename($v)}</td>
                <td><a title="安装插件" class="btn btn-info btn-small get" href="{$this->url($c,'install',array('package' => basename($v, '.zip')))}">安装</a></td>
            </tr>
            <!--{/loop}-->
        <!--{else}-->
            <tr>
                <td colspan="5">没有插件包!</td>
            </tr>
        <!--{/if}-->

        </table>
    <!--{/if}-->
    </div>
{template footer}